package com.swdegao.iot.netty.service;

import java.util.List;

import org.apache.http.ParseException;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestParam;

import com.alibaba.fastjson.JSONObject;

import io.swagger.annotations.ApiParam;

@Component
public interface CMDService {

	/**
	 * 命令下发
	 * @param imei
	 * @param data
	 * @param checkFlag
	 * @return
	 * @throws Exception
	 * @throws ParseException
	 */
	public JSONObject commandIssued(String imei, String data,String communicationType) throws ParseException, Exception;

	/**
	 * 命令响应
	 * @param imei
	 * @param requestID
	 * @return
	 */
	public List<JSONObject> commandResponse(String imei,String requestID);
	/**
	 * 预置命令接受
	 * @param imei
	 * @param data
	 * @return
	 * @throws ParseException
	 * @throws Exception
	 */
	public JSONObject waitingPresetCommand(String imei,String  data)throws ParseException, Exception;
}
